﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/content.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta name="keyword" content="${webSite.title}" />
		<title>${webSite.title}</title>
		<%@ include file="/jsps/modules/useragent.jsp"%>

		<script src="${ctx}/jsps/theme/${webSite.webSkin.filename}/js/ms.js"
			type="text/javascript"></script>


		<script type="text/javascript">
		var PImgPlayer = {
				 _timer : null,
				 _items : [],
				 _container : null,
				 _index : 0,
				 _imgs : [],
				 intervalTime : 5000, 
				 init : function( objID, w, h, time ){
				  this.intervalTime = time || this.intervalTime;
				  this._container = document.getElementById( objID );
				  this._container.style.display = "block";
				  this._container.style.width = w + "px";
				  this._container.style.height = h + "px";
				  this._container.style.position = "relative";
				  //this._container.style.overflow  = "hidden";
				  //this._container.style.border = "1px solid blue";
				  var linkStyle = "display: block; TEXT-DECORATION: none;";
				  if( document.all ){
				   linkStyle += "FILTER:";
				   linkStyle += "progid:DXImageTransform.Microsoft.Barn(duration=0.5, motion='out', orientation='vertical') ";
				   linkStyle += "progid:DXImageTransform.Microsoft.Barn ( duration=0.5,motion='out',orientation='horizontal') ";
				   linkStyle += "progid:DXImageTransform.Microsoft.Blinds ( duration=0.5,bands=10,Direction='down' )";
				   linkStyle += "progid:DXImageTransform.Microsoft.CheckerBoard()";
				   linkStyle += "progid:DXImageTransform.Microsoft.Fade(duration=0.5,overlap=0)";
				   linkStyle += "progid:DXImageTransform.Microsoft.GradientWipe ( duration=1,gradientSize=1.0,motion='reverse' )";
				   linkStyle += "progid:DXImageTransform.Microsoft.Inset ()";
				   linkStyle += "progid:DXImageTransform.Microsoft.Iris ( duration=1,irisStyle=PLUS,motion=out )";
				   linkStyle += "progid:DXImageTransform.Microsoft.Iris ( duration=1,irisStyle=PLUS,motion=in )";
				   linkStyle += "progid:DXImageTransform.Microsoft.Iris ( duration=1,irisStyle=DIAMOND,motion=in )";
				   linkStyle += "progid:DXImageTransform.Microsoft.Iris ( duration=1,irisStyle=SQUARE,motion=in )";
				   linkStyle += "progid:DXImageTransform.Microsoft.Iris ( duration=0.5,irisStyle=STAR,motion=in )";
				   linkStyle += "progid:DXImageTransform.Microsoft.RadialWipe ( duration=0.5,wipeStyle=CLOCK )";
				   linkStyle += "progid:DXImageTransform.Microsoft.RadialWipe ( duration=0.5,wipeStyle=WEDGE )";
				   linkStyle += "progid:DXImageTransform.Microsoft.RandomBars ( duration=0.5,orientation=horizontal )";
				   linkStyle += "progid:DXImageTransform.Microsoft.RandomBars ( duration=0.5,orientation=vertical )";
				   linkStyle += "progid:DXImageTransform.Microsoft.RandomDissolve ()";
				   linkStyle += "progid:DXImageTransform.Microsoft.Spiral ( duration=0.5,gridSizeX=16,gridSizeY=16 )";
				   linkStyle += "progid:DXImageTransform.Microsoft.Stretch ( duration=0.5,stretchStyle=PUSH )";
				   linkStyle += "progid:DXImageTransform.Microsoft.Strips ( duration=0.5,motion=rightdown )";
				   linkStyle += "progid:DXImageTransform.Microsoft.Wheel ( duration=0.5,spokes=8 )";
				   linkStyle += "progid:DXImageTransform.Microsoft.Zigzag ( duration=0.5,gridSizeX=4,gridSizeY=40 ); width: 100%; height: 100%";
				  }
				  //
				  var ulStyle = "margin:0;width:"+w+"px;position:absolute;z-index:999;FILTER:Alpha(Opacity=30,FinishOpacity=90, Style=1);overflow: hidden;bottom:-1px;height:21px; border-right:1px solid #fff;";
				  //
				  var liStyle = "margin:0;list-style-type: none; margin:0;padding:0; float:right;";
				  //
				  var baseSpacStyle = "clear:both; display:block; width:23px;line-height:18px; font-size:12px; FONT-FAMILY:'宋体';opacity: 0.6;";
				  baseSpacStyle += "border:1px solid #fff;border-right:0;border-bottom:0;";
				  baseSpacStyle += "color:#fff;text-align:center; cursor:pointer; ";
				  //
				  var ulHTML = "";
				  for(var i = this._items.length -1; i >= 0; i--){
				   var spanStyle = "";
				   if( i==this._index ){
				    spanStyle = baseSpacStyle + "background:#ff0000;";
				   } else {    
				    spanStyle = baseSpacStyle + "background:#000;";
				   }
				   ulHTML += "<li style=\""+liStyle+"\">";
				   ulHTML += "<span onmouseover=\"PImgPlayer.mouseOver(this);\" onmouseout=\"PImgPlayer.mouseOut(this);\" style=\""+spanStyle+"\" onclick=\"PImgPlayer.play("+i+");return false;\" herf=\"javascript:;\" title=\"" + this._items[i].title + "\">" + (i+1);
				   ulHTML += "</span></li>";
				  }
				  //
				  var html = "<a href=\""+this._items[this._index].link+"\" title=\""+this._items[this._index].title+"\" target=\"_blank\" style=\""+linkStyle+"\"></a><ul style=\""+ulStyle+"\">"+ulHTML+"</ul>";
				  
				  this._container.innerHTML = html;
				  var link = this._container.getElementsByTagName("A")[0]; 
				  link.style.width =  w + "px";
				  link.style.height = h + "px";
				  link.style.background = 'url(' + this._items[0].img + ') no-repeat center center';
				  //
				  this._timer = setInterval( "PImgPlayer.play()", this.intervalTime );
				 },
				 addItem : function( _title, _link, _imgURL ){
				  this._items.push ( {title:_title, link:_link, img:_imgURL } );
				  var img = new Image();
				  img.src = _imgURL;
				  this._imgs.push( img );
				 },
				 play : function( index ){
				  if( index!=null ){
				   this._index = index;
				   clearInterval( this._timer );
				   this._timer = setInterval( "PImgPlayer.play()", this.intervalTime );
				  } else {
				   this._index = this._index<this._items.length-1 ? this._index+1 : 0;
				  }
				  var link = this._container.getElementsByTagName("A")[0]; 
				  if(link.filters){
				   var ren = Math.floor(Math.random()*(link.filters.length));
				   link.filters[ren].Apply();
				   link.filters[ren].play();
				  }
				  link.href = this._items[this._index].link;
				  link.title = this._items[this._index].title;
				  
				  if(link.title!='' && link.title.length>13){
				  	$("#playerTitle").html(this._items[this._index].title.substring(0,13)+"...");
				  }else{
				 	$("#playerTitle").html(this._items[this._index].title);
				  }
				  
				  
				  link.style.background = 'url(' + this._items[this._index].img + ') no-repeat center center';
				  //
				  var liStyle = "margin:0;list-style-type: none; margin:0;padding:0; float:right;";
				  var baseSpacStyle = "clear:both; display:block; width:23px;line-height:18px; font-size:12px;  opacity: 0.6;";
				  baseSpacStyle += "border:1px solid #fff;border-right:0;border-bottom:0;";
				  baseSpacStyle += "color:#fff;text-align:center; cursor:pointer; ";
				  var ulHTML = "";
				  for(var i = this._items.length -1; i >= 0; i--){
				   var spanStyle = "";
				   if( i==this._index ){
				    spanStyle = baseSpacStyle + "background:#ff0000;";
				   } else {    
				    spanStyle = baseSpacStyle + "background:#000;";
				   }
				   ulHTML += "<li style=\""+liStyle+"\">";
				   ulHTML += "<span onmouseover=\"PImgPlayer.mouseOver(this);\" onmouseout=\"PImgPlayer.mouseOut(this);\" style=\""+spanStyle+"\" onclick=\"PImgPlayer.play("+i+");return false;\" herf=\"javascript:;\" title=\"" + this._items[i].title + "\">" + (i+1) + "</span>";
				   ulHTML += "</li>";
				  }
				  
				  this._container.getElementsByTagName("UL")[0].innerHTML = ulHTML; 
				 },
				 mouseOver : function(obj){
				  var i = parseInt( obj.innerHTML );
				  if( this._index!=i-1){
				   obj.style.color = "#ff0000";
				  }
				 },
				 mouseOut : function(obj){
				  obj.style.color = "#fff";
				 }
				}
	</script>
	</head>
	<body>

		<div class="wp">
			<div class="main">
				<div class="topr">
					<a href="#"><font color="red">设为首页</font> </a><span>|</span><a
						href="${ctx}/indexNewsAction!register.htm">注册</a><span>|</span>
					<a target="_top" id="addFavorite">收藏本站</a>
				</div>


				<div id="imgADPlayer" class="fla">
				</div>
				<script type="text/javascript">
					<c:forEach var="news" items="${map.photonews.enterprisePhotoNewsList}" begin="0" end="5">
						PImgPlayer.addItem("${news.title}", "${ctx}/indexNewsAction!news.htm?newsId=${news.id}","${ctx}/upload/enterprice/${news.photo}");
					</c:forEach>
					PImgPlayer.init("imgADPlayer", 492, 213);
				</script>

				<div class="news">
					<h2>
						<!-- 最新动态 -->
						<c:if test="${not empty map.login1}">
	                             ${map.login1.enterpriseColumn.names}
	                        </c:if>
						<c:if test="${empty map.login1}">
					                 	模块login1
					    </c:if>
					</h2>
					<ul>
						<c:forEach var="news" items="${map.login1.enterpriseNewsList}"
							begin="0" end="5">
							<li>
								<a href="${ctx}/indexNewsAction!news.htm?newsId=${news.id}">
								  <c:choose>
										<c:when test="${fn:length(news.title)>32}">
			                                   			${fn:substring(news.title,0,32)}...
			                                   		</c:when>
										<c:otherwise>
			                                   			${news.title}
			                                   		</c:otherwise>
								  </c:choose> </a>
							</li>
						</c:forEach>
					</ul>
				</div>

				<div class="logink">
					<form id="loginForm" name="loginForm"
						action="${ctx}/indexNewsAction!login.htm" method="post">
						<ul>
							<li>
								<font color="red"><s:actionmessage /></font>
							</li>
							<li>
								<label>
									帐 号
								</label>
								<input name="username" type="text" id="username" class="inpt"
									title="请输入帐号~!">
							</li>
							<li>
								<label>
									密 码
								</label>
								<input name="password" type="password" id="password"
									title="请输入密码~!" class="inpt">
							</li>
							<li>
								<label>
									验证码
								</label>
								<input name="vercode" type="text" id="vercode" class="inpt2"
									size="5" title=""、>
									&nbsp;&nbsp;&nbsp;&nbsp;<img id="AuthImg" name="AuthImg"
										src="${ctx}/AuthImg" height="25px" width="70px" alt="换一个" />
							</li>
						</ul>
						<div class="logbnt">
							<label>
								&nbsp;
							</label>
							<input type="submit" name="Button1" value="" id="Button1"
								class="bnt1" />
							<input type="button" class="bnt2"
								onclick="location='${ctx}/indexNewsAction!register.htm'" />
						</div>
					</form>

				</div>
				<div class="regtis">
					还没有账号？
					<a href="${ctx}/indexNewsAction!register.htm">立即注册</a>
				</div>

				<div class="stp">
					<div class="box">
						<div class="qq" id="textdiv1"
							style="overflow-x: hidden; overflow-y: hidden; width: 780px; height: 25px;">
							<table cellspacing="0" cellpadding="0"
								style="border-collapse: collapse;">
								<tbody>
									<tr>
										<td>
											<ul>
											<c:forEach var="news" items="${map.login2.enterpriseNewsList}">
												<li>
													<a href="${ctx}/indexNewsAction!news.htm?newsId=${news.id}">
														<c:choose>
															<c:when test="${fn:length(news.title)>17}">
								                                   	${fn:substring(news.title,0,17)}...
								                            </c:when>
															<c:otherwise>
								                                   	${news.title}
								                            </c:otherwise>
														</c:choose>
													</a>
												</li>
											</c:forEach>
											</ul>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>

					<script type="text/javascript">
						/*********文字翻屏滚动***************/
						new Marquee("textdiv1", 0, 1, 780, 25, 20, 4000, 500)
					</script>

				</div>
			</div>

			<div class="footer">
				<div class="box">
					<dl>
						<strong> 广州德懿信息技术有限公司</strong> 版权申明
						<br>
							Copyright 2010-2020 D&C Corporation, All Rights Reserved 
					</dl>
					<ul>
						客服电话：020-28261955<br>技术支持：<a href="http://www.messcat.com">广州讯猫软件有限公司</a>
					</ul>

				</div>

			</div>
		</div>
	</body>
</html>
<script type="text/javascript">
	$(document).ready(function() {

						$("#addFavorite")
								.click(function() {
									if (window.sidebar) { // Firefox
											window.sidebar.addPanel('德诚通讯充值平台',
													'http://www.messcat.com',
													'');
										} else {
											if (window.external
													&& ('AddFavorite' in window.external)) {
												// Internet Explorer
												window.external.AddFavorite('http://www.messcat.com','德诚通讯充值平台');
											} else { // Opera, Google Chrome and Safari
												alert("你的浏览器不支持这个操作！");
											}
										}

									});

						$("#loginForm")
								.validate(
										{
											rules : {
												username : {
													required : true
												},
												password : {
													required : true
												},
												vercode : {
													required : true,
													remote : "checkCodeAction!checkCode.action?math="
															+ Math.random()
												}
											},
											messages : {
												vercode : {
													remote : "校验码错误!"
												}
											},
											success : function(label) {
												label.html("&nbsp;").addClass(
														"checked");
											}
										});

						$("#AuthImg").click(function() {
							var timenow = new Date().getTime();
							this.src = "${ctx}/AuthImg?d=" + timenow;
						});
					});

	function SetCwinHeight() {
		var iframeid = document.getElementById("_iframe"); //iframe id
		if (document.getElementById) {
			if (iframeid && !window.opera) {
				if (iframeid.contentDocument
						&& iframeid.contentDocument.body.offsetHeight) {
					iframeid.height = iframeid.contentDocument.body.offsetHeight;
				} else if (iframeid.Document
						&& iframeid.Document.body.scrollHeight) {
					iframeid.height = iframeid.Document.body.scrollHeight;
				}
			}
		}
	}
</script>
<div style="display:none">
<script src="http://s9.cnzz.com/stat.php?id=5402245&web_id=5402245&show=pic" language="JavaScript"></script>
</div>